import math


def quadratic(a,b,c):
    # if not isinstance(a,(int,float)):
    #     raise TypeError('type error!')
    t = math.sqrt(b*b-4*a*c)
    x1 = (-b + t)/(2*a)
    x2 = (-b - t)/(2*a)
    return x1,x2

r1 = quadratic(2,3,1)
r2 = quadratic(1,3,-4)
print(r1)
print(r2)
